{extend name="base" /}
{block name="header"}
{/block}
{block name="body"}
<!--container-->
<div class="container clearfix">
    <div class="bread">
        <span>您的位置 : </span>
        <a href="{$site_config.site_domain}">{$site_config.site_name}</a> &gt;
        <a href="{:url("/news","","html",true)}">资讯</a>
    </div>
    <div class="wrap clearfix">
        <!--primary-->
        <div class="news-list">
            <h2>共<em>{$total}</em>篇文章</h2>
            <ul class="list">
                {foreach $list as $item}
                <li>
                    <a class="pic" title="{$item.title}" href="{:url("/news/" . $item['id'],"","html",true)}" target="_blank"><img class="lazy" src="{$item.image | down_image}" alt="{$item.title}"></a>
                    <h5 class="tit"><a href="{:url("/news/" . $item['id'],"","html",true)}" target="_blank">{$item.title}</a></h5>
                    <p class="info"><span>发布时间：<em>{$item.create_time | date="Y-m-d"}</em></span><span>编辑：{$item.author}</span></p>
                    <p class="text">{$item.introduction}</p>
                </li>
                {/foreach}
            </ul>

            <?php echo $pages;?>
        </div>
        <!--/primary-->

        <!--side-->
        <div class="side-bar">
            <!--hot-news-->
            <div class="hot-news">
                <h3>热门资讯</h3>
                <ul>
                    {foreach $hot_new_list as $key => $item}
                    <li class="s{$key + 1}"><em>{$key + 1}</em><a href="{:url("/news/" . $item['id'],"","html",true)}" target="_blank">{$item.title}</a></li>
                    {/foreach}
                </ul>
            </div>
            <!--hot-tags-->
            <div class="hot-tags">
                <h3>热门专题</h3>
                <ul>
                    {foreach $hot_tags_list as $item}
                    <li>
                        <a href="{:url("/tags/" . $item['id'],"","html",true)}"><img src="{$item.image | down_image}" alt="{$item.title}"><span>{$item.title}</span></a>
                    </li>
                    {/foreach}
                </ul>
            </div>
            <!--new-book-->
            <div class="new-book">
                <h3>推荐小说</h3>
                <ul>
                    {block_list block_id="1006" limit="5"}
                    <li>
                        <a class="pic" title="{$item.title}" href="{:url("/book/" . $item['id'],"","html",true)}"><img src="{$item.local_image | down_image}" alt="{$item.title}"></a>
                        <h5><a href="{:url("/book/" . $item['id'],"","html",true)}" title="{$item.title}">{$item.title}</a></h5>
                        <p>分类：{$item.cid | show_cid_name}</p>
                        <p>状态：{eq name="$item.full" value="1"}已完结{else/}连载中{/eq}</p>
                    </li>
                    {/block_list}
                </ul>
            </div>
        </div>
        <!--/side-->
    </div>
</div>
<!--/container-->
{/block}